package top.lilele.adminSystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 切片上传实体类
 *
 * @author lilele
 */
@Data
@TableName(value = "file_part")
public class FilePartEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 批次上传id，也是桶名
     */
    @TableField(value = "uploadId")
    private String uploadId;

    /**
     * 总片数
     */
    @TableField(value = "chunkTotal")
    private Integer chunkTotal;

    /**
     * 当前片数
     */
    @TableField(value = "currentChunk")
    private Integer currentChunk;

    /**
     * 文件id
     */
    @TableField(value = "fileId")
    private String fileId;

    @TableField(value = "createdTime", fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(value = "updatedTime", fill = FieldFill.UPDATE)
    private Date updatedTime;
}
